<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
		<meta content="telephone=no" name="format-detection" />
		<meta content="black" name="apple-mobile-web-app-status-bar-style" />
		<title>价值链_{block name="title"}{/block}</title>
		<link rel="stylesheet" type="text/css" href="/public/plug/LoadEffect/LoadEffect.css" />
		<link rel="stylesheet" type="text/css" href="/public/plug/IconFont/style.css" />
		<link rel="stylesheet" type="text/css" href="/public/webfe/css/layout.global.css" />
		<link rel="stylesheet" type="text/css" href="/public/webfe/css/global.css" />
		<link rel="stylesheet" type="text/css" href="/public/webfe/css/member.css" />
		{block name="css"}{/block}
	</head>

	<body>

		<div id="loadeffect" class="loadeffect"><span class="loadeffect-animate"></span></div>

		<!-- 头部 -->
		{include file="include:head" /}

		<div class="layout-region member bg-eee">
			<div class="layout-safety">
				<?php
					$_member = \think\Session::get('member');

					switch ($_member['role']) {
						case 0:
							$_member['_role'] = '未定义';
							break;
						case 1:
							$_member['_role'] = '创业者';
							break;
						case 2:
							$_member['_role'] = '个人天使';
							break;
						case 3:
							$_member['_role'] = '机构投资人';
							break;
					}
				?>
				<!--左侧导航-->
				<div class="left-nav box-shadow">
					<div class="head m-y-0x m-x-0x p-x-0x b-line-b">
						<img src="{:$_member['info']['headimgurl']}" class="pic-circle m-x-auto"/>
						<p class="weight-bold fs18r text-center m-t-2x">{$_member['info']['nickname']}</p>
						<p class="fs14r text-center m-t-1x">{$_member['_role']}</p>
						<a href="{:url('@member/info')}" class="setting"><i class="icon-setting fs16r"></i></a>
					</div>
					<!--<p class="fs18r text-left p-l-1x p-y-2x b-line-b weight-bold">会员中心</p>-->
					<ul class="nav m-t-4x">
						<?php if($_member['role'] > 1){ ?>
							<?php if(9 == $_member['status']){ ?>
							<li class="clearfix" id="nav-mem-tzrz">
								<i class="icon-medal fs18r"></i>
								<a href="{:url('@member/cert')}">投资人认证</a>
							</li>
							<?php } ?>
							<li class="clearfix" id="nav-mem-tzxh">
								<i class="icon-authenticator fs18r"></i>
								<a href="{:url('@member/like')}">投资喜好</a>
							</li>
						<?php } ?>

						<li class="clearfix" id="nav-mem-wdxx">
							<i class="icon-news fs18r"></i>
							<a href="{:url('@member/chat')}">我的消息
								<?php $count = getMsgCount(); ?>
								<?php if(0 != $count){ ?>
									<font class="weui-badge fs12r m-l-1x" style="font-family: Arial;vertical-align: text-bottom;">{$count}</font>
								<?php }?>
							</a>
						</li>

						<?php if(1 == $_member['role']){ ?>
							<li class="clearfix" id="nav-mem-wdxm">
								<i class="icon-financing fs18r"></i>
								<a href="{:url('@member/project')}">我的项目</a>
							</li>
							<!-- <li class="clearfix" id="nav-mem-wdbp">
								<i class="icon-smart fs18r"></i>
								<a href="{:url('@member/bp')}">我的BP</a>
							</li> -->
							<li class="clearfix" id="nav-mem-wdhd">
								<i class="icon-activity fs18r"></i>
								<a href="{:url('@member/activity')}">我的活动</a>
							</li>
						<?php } ?>

						<li class="clearfix" id="nav-mem-wdqb">
							<i class="icon-investment fs18r"></i>
							<a href="{:url('@member')}#account">我的钱包</a>
						</li>
						<li class="clearfix" id="nav-mem-xgmm">
							<i class="icon-password fs18r"></i>
							<a href="{:url('@member')}#editpwd">修改密码</a>
						</li>
						<li class="clearfix" id="nav-mem-xgsj">
							<i class="icon-phone fs18r"></i>
							<a href="{:url('@member')}#editmobile">更换手机</a>
						</li>
						<!--<li class="clearfix">
							<i class="icon-share fs18r"></i>
							<a href="" class="fs14r">我的推荐</a>
						</li>-->
					</ul>
				</div>

				<div class="right-container box-shadow">
					{block name="body"}{/block}
				</div>
			</div>
		</div>

		<!-- 联系我们 -->
		{include file="include:contact" /}

		<!-- 底部 -->
		{include file="include:foot" /}

		{block name="js"}{/block}
	</body>

</html>
